package com.deuwise.system.entity.message;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * <p>
 *  实体 接口
 * </p>
 *@author chenwenchao
 *@date 2020-02-20 10:36:29
 */
@TableName("tb_message")
@Data
@ApiModel("消息记录")
public class MessageDo {

    @TableField("id")
    @ApiModelProperty(value = "id")
    @TableId
    private String id;

    @ApiModelProperty(value = "标题")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "内容")
    @TableField("content")
    private String content;

    @ApiModelProperty(value = "消息类型")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "新创建账号也推送0,1")
    @TableField("create_send")
    private Integer createSend;

    @TableField(exist=false)
    @ApiModelProperty(value = "发送范围")
    private Integer range;

    @TableField(exist=false)
    @ApiModelProperty(value = "发送指定用户id")
    private String[] userIds;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty(value = "起始日期(搜索使用)")
    @TableField(exist=false)
    private String startDate;

    @ApiModelProperty(value = "结束日期(搜索使用)")
    @TableField(exist=false)
    private String endDate;

    @ApiModelProperty(value = "创建人Id")
    @TableField("create_user")
    private String createUser;
}
